﻿using BLL.Dal;
using BLL.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class SysAdmin_Dictionary_Edit : System.Web.UI.Page
{
    public string Id = "";
    public string key = "";
    public string dicName = "";
    public bool isActive = false;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string dicCode = ReqHelper.Get<string>("dic_key");
            SysDictionaryDAL modelBus = new SysDictionaryDAL();
            SysDictionary model = modelBus.GetModel(new Guid(dicCode));
            if (model != null)
            {
                //绑定初始值
                Id = model.ID.ToString();
                key = model.dicKey;
                dicName = model.dicName;
                isActive = model.isActive;
            }
        }
    }
}